package model

type UserMonthWorkhour struct {
	Id             uint64  `json:"id" gorm:"column:id"`
	Name           string  `json:"name" gorm:"column:name"`
	Phone          string  `json:"phone" gorm:"column:phone"`
	WorkDateStr    string  `json:"work_date_str" gorm:"column:work_date_str"`
	WorkDate       uint64  `json:"work_date" gorm:"column:work_date"`
	Hours          float64 `json:"hours" gorm:"column:hours"`
	UserId         uint64  `json:"user_id" gorm:"column:user_id"`
	ProjectName    string  `json:"project_name" gorm:"column:project_name"`
	Grade          string  `json:"grade" gorm:"column:grade"`
	GroupName      string  `json:"group_name" gorm:"column:group_name"`
	DepartmentName string  `json:"department_name" gorm:"column:department_name"`
}

// 设置表名
func (UserMonthWorkhour) TableName() string {
	return "user_month_workhour"
}
